<%@ page import="com.informet.ipd.modelo.dao.OEspecificoDao" %>
<%@ page import="com.informet.ipd.modelo.vo.OEspecificoVO" %>
<%@ page import="com.informet.ipd.struts.form.PEIForm" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.swing.JOptionPane"%>
<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/tags/c" prefix="c"%>

<%
          
            StringBuffer cadenaSalida = new StringBuffer();
            List lista = null;

          
            OEspecificoDao supportFacade = new OEspecificoDao();
            PEIForm form = new PEIForm();
            
            try {
                
                int id = Integer.parseInt(request.getParameter("id"));
         
               
                OEspecificoVO vo;
                lista = supportFacade.getCombo(id);
                form.setListaOEspecifico(lista);
                
                cadenaSalida.append("<select  name='codObjEsp' id='codObjEsp' onchange='describiroe()' style='width: 400px' styleClass='select'>");
                cadenaSalida.append(" <option value='-1'>[--Seleccionar Objetivo Espec&iacute;fico Estrat&eacute;gico--]</option>");
				
                Iterator it = lista.iterator();
                while (it.hasNext()) {
                    vo = (OEspecificoVO) it.next();

                   
                    cadenaSalida.append("<option value='"+vo.getNUM_CODOBJESP_PK()+"'>"+vo.getTX_DESCOBJESP()+"</option>");
                  

                   
                }
                 cadenaSalida.append("</select>");
            } catch (Exception e) {
            
                cadenaSalida.append(""+e.toString());
            }
            out.print(cadenaSalida);
%>